package com.example.shardingjdbctest.GraphQLResolver;

import graphql.kickstart.tools.GraphQLQueryResolver;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@Component
public class Query implements GraphQLQueryResolver {
    public List<String> helloWorld() {
      return Stream.of("hello", "world", "!").map(value -> value.toUpperCase()).collect(Collectors.toList());
    }
}
